package com.zx.flow.api.execute.request;

import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema.RequiredMode;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@Schema(title = "流程-沟通回复", description = "流程-沟通回复")
public class FlowParamCommunicateAnswer extends FlowParam {

    @Schema(description = "流程节点id", example = "5cf79580-07c9-4bf1-b061-51561a6748ee", requiredMode = RequiredMode.REQUIRED)
    @NotEmpty(message = "流程节点id不能为空")
    private String nodeId;

    @Schema(description = "操作人账号", example = "zhangsan", requiredMode = RequiredMode.REQUIRED)
    @NotEmpty(message = "操作人账号不能为空")
    private String accountCode;

    @Schema(description = "操作备注", example = "同意", requiredMode = RequiredMode.REQUIRED)
    @NotEmpty(message = "操作备注不能为空")
    private String remark;

    public FlowParamCommunicateAnswer(String flowId, String nodeId, String accountCode, String remark) {
        this.setId(flowId);
        this.accountCode = accountCode;
        this.remark = remark;
        this.nodeId = nodeId;
    }


}
